tg-me.com/Advanced_Bot_Codings/205
Last Update:
❓ How User Can Transfer Their Balance To His Friends ?
♻️ Command = Transfer
♻️ Answer = *Enter Your Friend Telegram Id For Transfer Your Balance.*
♻️ Wait For Answer = On
♻️ BJS = Bot.run({
command: "/Transfer",
options: { tgid : message }
})
🛑 Now, Make A New Another Command.
♻️ Command = /Transfer
♻️ Answer = *🛑 Enter An Amount For Sending To Your Friend's Account.\n\n⚠️ Note = It Will Deducated From Your Account Balance.*
♻️ Wait For Answer = On
♻️ BJS =var balance = Libs.ResourcesLib.userRes("balance")
var tgid = options.tgid
if(message > balance.value()) {
Bot.sendMessage("*⚠️ Insufficient Balance For This Transaction.\n\n📛 You Have Only "+balance.value()+" Rs.*")
}else{
var friend = Libs.ResourcesLib.anotherUserRes("balance",tgid)
friend.add(+message)
balance.add(-message)
Bot.sendMessage("*✅ Amount "+message+" Rs Has Been Transfer To "+tgid+".\n\n💵 Your Current Balance : "+balance.value()+" Rs.*")
}
🧑🏻💻 Code Developer = @Shadab_Alam
BY Advanced Bot Codings™
Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283
Share with your friend now:
tg-me.com/Advanced_Bot_Codings/205